<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/21
 * Time: 17:28
 */

namespace app\console\model;


use think\Model;

class Car extends Model
{
    public function getIsDeleteTextAttr($value, $data)
    {
        $status = ['-', '已删除'];
        return $status[$data['is_delete']];
    }
}